<!--@if($category_list[$category]->childs) -->
<div id="forum_mod" class="sub_forums">
<form action="./" method="get" class="forumListForm">
	<table cellpadding="0" cellspacing="0" border="0" class="forumCategoryList">
		<caption></caption>
		<clotion>
		<col style="width:45%" />
		<col style="width:15%" />
		<col style="width:15%" />
		<col style="width:20%" />
		</clotion>
		<thead>
		{@ $no_line_class = " no_line" }
		<tr>
		<th><div class="th1">{$lang->subforums}</div></th>
		<th><div class="th2">{$lang->document_count}</div></th>
		<th><div class="th3">{$lang->comments}</div></th>
		<th><div class="th4">{$lang->last_update}</div></th>
		</tr>
		</thead>		
	</table>
	{@$sw = 0}
	{@$startDepth = $category_list[category]->depth}
	<!--@foreach($category_children as $val)-->
	<!--@if( $sw == 0 )-->
	<table cellpadding="0" cellspacing="0" border="0" class="forumCategoryList">
		<caption></caption>
		<clotion>
		<col style="width:45%" />
		<col style="width:15%" />
		<col style="width:15%" />
		<col style="width:20%" />
		</clotion>
	<tbody>
	<!--@else-->
	<tr class="<!--@if($val->depth > 0)-->separator1{$val->depth}<!--@end -->">
	<td class="sub_forum">
<!--@if($val->depth)-->
	<h{(3 + $val->depth - $startDepth)} class="gF"><a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent','search_target','','search_keyword','')}">{$val->title}</a></h{(3 + $val->depth)}>
	<!--@end -->
	<!--@if((!$val->depth) && (!$val->child_exists))-->
	<a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent','search_target','','search_keyword','')}">{$val->title}</a>
	<!--@end -->
	<!--@if(!$val->depth)--><a href="{getUrl('category',$val->category_srl, 'act', 'dispForumContent','search_target','','search_keyword','')}">{$val->title}</a><!--@end-->
	</td>
	<td class="td2">
	<!--@if($val->depth)-->{$val->document_count}<!--@end -->
	<!--@if((!$val->depth) && (!$val->child_exists))-->{$val->document_count}<!--@end -->
	</td>
	<td class="td3">
	<!--@if($val->depth)-->{$val->comment_count + $val->document_count}<!--@end -->
	<!--@if((!$val->depth) && (!$val->child_exists))-->{$val->comment_count}<!--@end -->
	</td>
	<td class="td4">
		<!--@if($val->depth >= 0 && $val->document_count)-->
			<p><span style="font-weight: bold;"></span>{zdate($val->last_update,'Y-m-d')}</p>
			<p><span >{$lang->by} </span>{$val->last_author}</p>
			<!--@if($val->last_post || $val->last_document)-->
				<a href="{getUrl('mid','','document_srl', $val->last_document,'cpage','')}#comment_{$val->last_post}">{$lang->latest_post}</a>
			<!--@end-->
		<!--@else-->
			No Threads
		<!--@end -->	
	</td>
	</tr>
	<!--@end-->
	{@$sw += 1}
	<!--@end-->
	</tbody>
	
	</table>
</div>
</form>
<!--@end-->